/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package rpt.bd.cenario;

/**
 *
 * @author Roberto
 */
public class CEstruturaRegistroBd extends CEstruturaRegistro {

    CPersistenciaBd fPersistenciaBd = null;

    public CEstruturaRegistroBd(CPersistenciaBd aPersistenciaBd) {
        super();
        fPersistenciaBd = aPersistenciaBd;
    }

    /**************************************************************************/
    /***                                                                    ***/
    /**************************************************************************/

    public CPersistenciaBd getPertinenciaBd() {
        return fPersistenciaBd;
    }

    /**************************************************************************/
    /***                                                                    ***/
    /**************************************************************************/

    /**************************************************************************/
    /***                                                                    ***/
    /**************************************************************************/

    @Override
    public void eventoAntesAtualizarPainelBd(CRegistro aRegistro) {
        int n = this.getNumCamposRegistroBd();
        for (int i = 0; i < n; i++) {
            getEstruturaCampoRegistroBd(i).eventoAntesAtualizarPainelBd(aRegistro);
        }
    }

    /**************************************************************************/
    /***                                                                    ***/
    /**************************************************************************/

    @Override
    public void eventoDepoisAtualizarPainelBd(CRegistro aRegistro) {
        int n = this.getNumCamposRegistroBd();
        for (int i = 0; i < n; i++) {
            getEstruturaCampoRegistroBd(i).eventoDepoisAtualizarPainelBd(aRegistro);
        }
    }

    /**************************************************************************/
    /***                                                                    ***/
    /**************************************************************************/

    public String getQuerySelecionar(final String aCondicaoExterna) {
        return null;
    }
}
